package com.family.base.dao;

import java.io.Serializable;
import java.util.Collection;

public interface BaseIDao <T, PK extends Serializable>{

	void save(T entity);
	
	void saveOrUpdate(T entity);
	
	void delete(T entity); 
	
	void delete(Class<T> clazz,PK id);
	
	void deleteAll(Collection<T> entities);
	
	T get(Class<T> entityClass,PK id);
	
}
